﻿<Page
    x:Class="Matrix3DExUniversalSample.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:Matrix3DExUniversalSample"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    Loaded="OnLoaded">

    <Grid Background="{ThemeResource ApplicationPageBackgroundThemeBrush}" PointerPressed="Viewport_OnPointerPressed" PointerMoved="Viewport_OnPointerMoved" PointerReleased="Viewport_OnPointerReleased" >
        <StackPanel >
            <TextBlock FontSize="12" Text="Matrix3DEx - Matrix3D Extensions - Sample" HorizontalAlignment="Center" VerticalAlignment="Stretch" />
            <Grid >
                <Grid.ColumnDefinitions>
                    <ColumnDefinition />
                    <ColumnDefinition Width="200" />
                </Grid.ColumnDefinitions>
                <Canvas Name="Viewport" HorizontalAlignment="Stretch" VerticalAlignment="Stretch"  />
                <ScrollViewer Grid.Column="1" >
                    <StackPanel >
                        <!--<TextBlock Text="Selected element" TextAlignment="Left" HorizontalAlignment="Left" Width="180" />
                    <TextBlock Text="Translate XYZ" TextAlignment="Left" HorizontalAlignment="Left" Width="180" Margin="0,2,0,0" />
                    <Slider Width="180" Minimum="-1000" Maximum="1000" Value="{Binding TranslateX, Mode=TwoWay}" />
                    <Slider Width="180" Minimum="-1000" Maximum="1000" Value="{Binding TranslateY, Mode=TwoWay}" />
                    <Slider Width="180" Minimum="-1000" Maximum="1000" Value="{Binding TranslateZ, Mode=TwoWay}" />

                    <TextBlock Text="Scale XYZ" TextAlignment="Left" HorizontalAlignment="Left" Width="180" Margin="0,10,0,0" />
                    <Slider Width="180" Minimum="0" Maximum="10" Value="{Binding ScaleX, Mode=TwoWay}" />
                    <Slider Width="180" Minimum="0" Maximum="10" Value="{Binding ScaleY, Mode=TwoWay}" />
                    <Slider Width="180" Minimum="0" Maximum="10" Value="{Binding ScaleZ, Mode=TwoWay}" />

                    <TextBlock Text="Rotate XYZ" HorizontalAlignment="Left" TextAlignment="Left" Width="180" Margin="0,10,0,0"/>
                    <Slider Width="180" Minimum="0" Maximum="360" Value="{Binding RotateX, Mode=TwoWay}" />
                    <Slider Width="180" Minimum="0" Maximum="360" Value="{Binding RotateY, Mode=TwoWay}" />
                    <Slider Width="180" Minimum="0" Maximum="360" Value="{Binding RotateZ, Mode=TwoWay}" />-->

                        <TextBlock Text="Projection" TextAlignment="Left" HorizontalAlignment="Left" Width="180" Margin="0,20,0,0" />
                        <TextBlock Text="Camera position XYZ" HorizontalAlignment="Left" TextAlignment="Left" Width="180" Margin="0,2,0,0" />
                        <Slider Width="180" Minimum="-4000" Maximum="4000" Value="{Binding CameraX, Mode=TwoWay}" />
                        <Slider Width="180" Minimum="-4000" Maximum="4000" Value="{Binding CameraY, Mode=TwoWay}" />
                        <Slider Width="180" Minimum="-7000" Maximum="0" Value="{Binding CameraZ, Mode=TwoWay}" />
                        <CheckBox Name="ChkAnimated" Content="Animate" IsChecked="True"  Foreground="#FFFFFFFF" />

                        <TextBlock Text="Camera look-at XYZ" HorizontalAlignment="Left" TextAlignment="Left" Width="180" Margin="0,5,0,0" />
                        <Slider Width="180" Minimum="-1000" Maximum="1000" Value="{Binding CameraLookAtX, Mode=TwoWay}" />
                        <Slider Width="180" Minimum="-1000" Maximum="1000" Value="{Binding CameraLookAtY, Mode=TwoWay}" />
                        <Slider Width="180" Minimum="-1000" Maximum="1000" Value="{Binding CameraLookAtZ, Mode=TwoWay}" />
                        <CheckBox Name="ChkLookAtSelected" Content="Look-at selected" Foreground="#FFFFFFFF" />

                        <TextBlock Text="Field Of View" HorizontalAlignment="Left" TextAlignment="Left" Width="180" Margin="0,10,0,0" />
                        <Slider Width="180" Minimum="0" Maximum="180" Value="{Binding FieldOfView, Mode=TwoWay}" />
                        <CheckBox Name="ChkPerspective" Content="Perspective projection" IsChecked="True" Foreground="#FFFFFFFF" />

                        <TextBlock Name="TxtTrace1" TextAlignment="Left" Width="250" Margin="0,0,10,0" />

                    </StackPanel>
                </ScrollViewer>
            </Grid>
        </StackPanel>

    </Grid>
</Page>
